<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="../node_modules/axios/dist/axios.min.js"></script>
</head>
<body>
	<button>get</button>
</body>
<script>
	
	document.querySelector("button").onclick = function(){
		const fnName = "zhang"+Math.random().toString(36).slice(2);
		window[fnName] = function(data){
			console.log(data);
		}
		const script = document.createElement("script");
		script.src="http://127.0.0.1/one?cb="+fnName;
		script.onload = function(){
			delete window[fnName];
			document.body.removeChild(script);
		}
		document.body.appendChild(script);
	}
	
</script>
</html>